package com.example.cloud.dao.mongdb.basic.info;

import com.example.cloud.model.basic.HomeDiscountProject;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wangtao on 2018/3/4.
 */
@Repository
public interface MongoHomeDiscountProjectRepository extends MongoRepository<HomeDiscountProject, Long> {
    int deleteByIdIn(List<Long> ids);
    List<HomeDiscountProject> findByHomeIdAndDeleteFlag(Long homeId, int deleteFlag);
}
